package cn.kmust.project01.service;

import cn.kmust.project01.entity.Notice;
import cn.kmust.project01.mapper.NoticeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeServiceImp implements NoticeService {
    @Autowired
    private NoticeMapper noticeMapper;

    @Override
    public List<Notice> queryAll() {
        List<Notice> notices = noticeMapper.queryAll();
        return notices;
    }

    @Override
    public Notice queryById(Integer id) {
        Notice notice = noticeMapper.queryById(id);
        return notice;
    }

    @Override
    public List<Notice> queryByMan(Integer jobNumber) {
        return null;
    }

    @Override
    public int addNotice(Notice notice) {
        return 0;
    }

    @Override
    public int updateNotice(Integer id) {
        return 0;
    }

    //请求全部的公告
}
